package com.bestcem.xm.ticket.enums;

/**
 * 工单导出文件类型枚举
 *
 * @author XiaoYunSong <ys.xiao@idiaoyan.com>
 * @date 2021/11/17 14:41
 */
public enum ExportTypeEnum {
    /**
     * excel
     */
    EXCEL("excel", 0);

    private final String name;

    private final int index;

    ExportTypeEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }

    public int getIndex() {
        return index;
    }

    public String getName() {
        return name;
    }

    public boolean matches(int index) {
        return this.index == index;
    }
}